.class public Lmyview/PullableScrollView;
.super Landroid/widget/ScrollView;
.source "PullableScrollView.java"

# interfaces
.implements Lmyview/Pullable;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 12
    invoke-direct {p0, p1}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    .line 13
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 17
    invoke-direct {p0, p1, p2}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 18
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 22
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 23
    return-void
.end method


# virtual methods
.method public canPullDown()Z
    .locals 1

    .prologue
    .line 28
    invoke-virtual {p0}, Lmyview/PullableScrollView;->getScrollY()I

    move-result v0

    if-nez v0, :cond_0

    .line 29
    const/4 v0, 0x1

    .line 31
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public canPullUp()Z
    .locals 4

    .prologue
    const/4 v0, 0x0

    .line 37
    invoke-virtual {p0}, Lmyview/PullableScrollView;->getScrollY()I

    move-result v1

    invoke-virtual {p0, v0}, Lmyview/PullableScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getHeight()I

    move-result v2

    invoke-virtual {p0}, Lmyview/PullableScrollView;->getMeasuredHeight()I

    move-result v3

    sub-int/2addr v2, v3

    if-lt v1, v2, :cond_0

    .line 38
    const/4 v0, 0x1

    .line 40
    :cond_0
    return v0
.end method
